﻿<DockPanel  x:Class="SimpleControlLibrary.UI.LogControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             
             mc:Ignorable="d" 
           Name="日志"
             d:DesignHeight="300" d:DesignWidth="300">
    <Grid>
        
        <Grid.RowDefinitions>
            <RowDefinition/>
            <RowDefinition Height="28"/>
        </Grid.RowDefinitions>
        <StatusBar Grid.Row="1">
            <Button Content="清空日志" Click="BtnClearLogItemClick"/>
            <StatusBarItem HorizontalAlignment="Right">
                <CheckBox Content="是否定时清空日志" Name="cbIsClearState"/>
            </StatusBarItem>
        </StatusBar>
       
                <RichTextBox Name="tblog"
                         AcceptsReturn="True" 
                         VerticalScrollBarVisibility="Visible" Padding="0" IsReadOnly="True" FontFamily="ContentEnd" FontSize="12">
                    <RichTextBox.Resources>
                        <Style TargetType="{x:Type Paragraph}">
                            <Setter Property="Margin" Value="0"/>
                        </Style>
                    </RichTextBox.Resources>
                </RichTextBox>
            
    </Grid>
</DockPanel>
